import type { IPageContentConfig } from '@/global/types'

const classifyContentConfig: IPageContentConfig = {
  pageName: 'goodClassify',
  layout: {
    border: false,
    size: 'small',
    stripe: true
  },
  items: [
    {
      prop: 'name',
      label: '分类名字',
      minWidth: '140'
    },
    {
      type: 'custom',
      slotName: 'img',
      label: '分类图片',
      minWidth: '110',
      align: 'center'
    },
    {
      prop: 'classifyType',
      label: '分类级别',
      minWidth: '90',
      align: 'center'
    },
    {
      prop: 'createBy',
      label: '创建人',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateBy',
      label: '更新人',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'updateTime',
      label: '更新时间',
      minWidth: '180',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '操作',
      minWidth: '120',
      align: 'center',
      // fixed: 'right',
      btns: [
        { type: 'edit', label: '编辑' },
        { type: 'delete', label: '删除' }
      ]
    }
  ]
}

export default classifyContentConfig
